<form action="<?php echo $this->action;?>" method="post" OnSubmit="return checkdados(this)">
<input type="hidden" name="id_funcionario" id="id_funcionario" value="<?php echo $this->funcionario->id_funcionario;?>">
<div id="tabs">
	 <ul>
               <li><a href="#tabs-1">Pessoal</a></li>
               <li><a href="#tabs-2">Endereço</a></li>
               <li><a href="#tabs-3">Contrato</a></li>
               
	</ul>
<div id="tabs-1"  style="width: 60%">
	<ul>
		  <li> <label class="description">Nome</label>
				<div>
			       	<input type="text" name="ds_nome" class="element select large" value="<?php echo $this->escape(trim($this->ds_nome));?>"/>
					<p class="guidelines"><small>Informar nome completo</small></p>
				</div>
		 </li>  
		 <li> <label class="description">CPF:</label>
		       <div>
			    	<input type="text" name="ds_cpf" id="ds_cpf" class="element select large" onkeypress="return formata_keypress(this, '999.999.999-99', (event ? event : Event))" value="<?php echo $this->escape(trim($this->ds_cpf));?>"/>
			  </div>
		</li>
		 <li> <label class="description">RG:</label>
		      <div>
			     <input type="text" name="ds_rg" id="ds_rg" class="element select large" value="<?php echo $this->escape(trim($this->ds_rg));?>"/>
	  		 </div>
		</li>
		<li> <label class="description">Sexo:</label>
			 <div>
				<select type="text" name="sexo" id="sexo" class="element text large" value="<?php echo UtilController::getOptionSexo($this->id_sexo);?>"/></select>
			</div>
		</li>
		
		<li> <label class="description">Estado Civil:</label>
			<div>
		       <select name="estado_civil" id="estado_civil" class="element text large " value="<?php echo UtilController::getOptionCivil($this->id_civil);?>"/></select>
		    </div>
	   </li> 
	   
		<li> <label class="description">Contato:</label>
		 	<div class="left">
		        <input type="text" name="nr_telefone" id="nr_telefone" class="element text large" onkeypress="return formata_keypress(this, '(99)99999-9999', (event ? event : Event))", value="<?php echo $this->escape(trim($this->nr_telefone));?>"/>
		       	<label> telefone residencial</label>
		   </div>
		   <div class="right">
		       <input type="text" name="nr_celular" id="nr_celular" class="element text large" onkeypress="return formata_keypress(this, '(99)99999-9999', (event ? event : Event))", value="<?php echo $this->escape(trim($this->nr_celular));?>" />
		       <label>celular</label>
		  </div>			
		  	<div>
				<input type="text" name="ds_email" id="ds_email" class="element text large" value="<?php echo $this->escape(trim($this->ds_email));?>"/>
			 	<label>e-mail</label>
			 	<p class="guidelines"><small>Informar dados para contato</small></p>
			</div>
		</li>
	</ul>
</div>
	
 <div id="tabs-2"  style="width: 60%">
	<ul>
    	<li> <label class="description">Endereço</label>
			<div  class="left">
				<input type="text" name="ds_cep" id="ds_cep" class="element text large" value="<?php echo $this->ds_cep; ?>"/>
				<label>CEP / Zip Code</label>
			</div>
			<div class="right">
				<input id="pais_autocomplete" name="pais_autocomplete" class="element text large" value="<?php echo $this->ds_pais; ?>">
				<input id="id_pais" type="hidden" value="<?php echo $this->ds_pais; ?>">
				<label>País</label>
			</div>
			<div class="left">
				<input id="estado_autocomplete"  autocomplete="off" class="element text large" value="<?php echo $this->id_estado; ?>">
				<input id="id_estado" type="hidden" value="<?php echo $this->id_estado; ?>">
				<label>Estado/Província/Região</label>
			</div>
			<div class="right">
				<input id="cidade_autocomplete" name="cidade_autocomplete"  autocomplete="off" class="element text large" value="<?php echo $this->id_cidade; ?>">
				<input id="id_cidade" name="id_cidade" type="hidden" value="<?php echo $this->id_cidade; ?>">
				<label>Cidade</label>
			</div>
			<div>
				<input name="ds_endereco" id="ds_endereco" class="element text large" type="text" maxlength="255" value="<?php echo $this->ds_endereco; ?>"/>
				<label>Logradouro</label>
			</div>
			<div class="left">
				<input type="text" name="nr_endereco" id="nr_endereco" class="element text large" value="<?php echo $this->nr_endereco; ?>"/>
				<label>Número</label>
			</div>
			<div class="right">
				<input type="text" name="ds_complemento" id="ds_complemento" class="element text large" value="<?php echo $this->ds_complemento; ?>"/>
				<label>Complemento</label>
			</div>
			<div class="left">
				<input type="text" name="ds_bairro" id="ds_bairro"  class="element text large" value="<?php echo $this->ds_bairro; ?>"/>
				<label>Bairro</label>
				<p class="guidelines"><small>Informar endereço</small></p>
			</div>
    	 </li>
	</ul>
</div>
			
	<div id="tabs-3"  style="width: 60%">
		<ul>
			<li> <label class="description">Cargo:</label>
				<div>
					<input type="text" name="ds_cargo" class="element text medium" value="<?php echo $this->ds_cargo;?>"/>
	   				<p class="guidelines"><small>Informar cargo</small></p>
	   			</div>	
	   		</li>	
		  	
		 	<li> <label class="description">Data contratação:</label>
				<div class="dates">
					<input type="text" id="ini0" name="dt_contratacao" class="element text medium datepicker" value="<?php echo $this->dt_contratacao;?>"/>
	   				<p class="guidelines"><small>Informar data da contratação</small></p>
	   		   </div>		
			 </li>
			 	<li>
					<div class="rigth" align="right">
					<input type="submit" name="salvar" id="salvar" value="Salvar"/>
					</div>
				</li>
		</ul>
	</div>
</div>
</form>


